#ifndef PLSSIMFUNC_H
#define PLSSIMFUNC_H

#include "socket_header.h"
#include "bhtpdvpls_structs.h"

void error(const char *msg);
int readin(int fd, char * buffer, int size);
int connectSocket(const char * hostname, int16_t portno);
int sendCmd(int socket, Command cmd);
int sendCmdPkg(int socket, ComandPkg cmdPkg);
int sendCmdPkgEx(int socket, Command cmd, uint16_t objektId, uint16_t x_mm, uint16_t y_mm, uint16_t theta_grad);

#endif //#ifndef PLSSIMFUNC_H

